import http from '@/utils/request'
import { paramsType, dataType } from './utils/interface'

export function queryService(data: dataType): Promise<any> {
  return http.request({
    url: '/api/v1/vone/services',
    method: 'post',
    data
  })
}

export function buildService(data: dataType): Promise<any> {
  return http.request({
    url: '/api/v1/vone/run',
    method: 'post',
    data
  })
}

export function a(params: paramsType): Promise<any> {
  return http.request({
    url: '/api/v1/vone/run',
    method: 'get',
    params
  })
}
